package com.house.service.impl;


import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.house.dao.CountyDao;
import com.house.pojo.County;
import com.house.service.CountyService;


@Transactional/*事务提交*/
@Service
public class CountyServiceImpl implements CountyService {
	
	
	
	@Autowired
	private CountyDao countydao;

	@Override
	public List<County> selectCounty() {
		// TODO Auto-generated method stub
		return countydao.selectCounty();
	}

	@Override
	public County selectCountyName(int countyno) {
		// TODO Auto-generated method stub
		return countydao.selectCountyName(countyno);
	}

	@Override
	public County selectCountyno(String cName) {
		// TODO Auto-generated method stub
		return countydao.selectCountyno(cName);
	}

}
